package com.adl.service;

import com.adl.dao.PersonDAO;
import com.adl.entity.Person;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * Created by A on 2017/6/13.
 */
@Transactional
@Service
public class PersonService implements BaseService<Person> {
    @Resource
    PersonDAO personDAO;

    @Override
    public Person findById(int id) {
        return personDAO.findById(id);
    }
}
